import request from '@/utils/request'

// 查询商品支付列表
export function listGoodsOrderPays(query) {
  return request({
    url: '/course/goodsOrderPays/list',
    method: 'get',
    params: query
  })
}

// 查询商品支付详细
export function getGoodsOrderPays(id) {
  return request({
    url: '/course/goodsOrderPays/' + id,
    method: 'get'
  })
}
// 查询商品支付详细
export function getGoodsOrderPayDetail(id) {
  return request({
    url: '/course/goodsOrderPays/pay/' + id,
    method: 'get'
  })
}


// 新增商品支付
export function addGoodsOrderPays(data) {
  return request({
    url: '/course/goodsOrderPays',
    method: 'post',
    data: data
  })
}

// 修改商品支付
export function updateGoodsOrderPays(data) {
  return request({
    url: '/course/goodsOrderPays',
    method: 'put',
    data: data
  })
}

// 删除商品支付
export function delGoodsOrderPays(id) {
  return request({
    url: '/course/goodsOrderPays/' + id,
    method: 'delete'
  })
}
